package com.sky.mapper.user;

import com.sky.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where openid = #{openId}")
    User getByOpenid(String openId);

    /**
     * 新增用户
     * @param user
     */
    void insert(User user);
}
